/*
 * $Id: HstSystemContactInfo.java,v 1.6 2009/12/16 18:31:22 navdeep_mahajan Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

/*
 * Created Wed May 13 09:19:05 CDT 2009 by MyEclipse Hibernate Tool.
 */
package com.ge.healthcare.autosc.common.database.pojo;

import java.io.Serializable;

import com.ge.healthcare.autosc.common.ASCUtil;
import com.ge.healthcare.autosc.common.util.TimeFormatStandard;

/**
 * A class that represents a row in the 'HST_SYSTEM_CONTACT_INFO' table. This
 * class may be customized as it is never re-generated after being created.
 */
public class HstSystemContactInfo extends AbstractHstSystemContactInfo
		implements Serializable {
	/**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = 1437049548658617220L;
	public static final String TABLE_NAME = "com.ge.healthcare.autosc.common.database.pojo.HstSystemContactInfo";
	public static final String COL_SYSTEM_CONTACT_INFO_ID = "systemContactInfoId";
	public static final String COL_STEP_TYPE_ID = "stepTypeId";
	public static final String COL_IP_ADDRESS = "ipAddress";

	public static final String HTTP_CONNECT_TYPE = "http";
	public static final String IPTDS_CONNECT_TYPE = "iptds";

	/**
	 * Simple constructor of HstSystemContactInfo instances.
	 */
	public HstSystemContactInfo() {
		super();
	}

	/**
	 * Constructor of HstSystemContactInfo instances given a simple primary key.
	 * 
	 * @param systemContactInfoId
	 */
	public HstSystemContactInfo(java.lang.Long systemContactInfoId) {
		super(systemContactInfoId);
	}

	/* Add customized code below */
	public String toString() {
		StringBuffer definiton = new StringBuffer();
		definiton.append("{ID=").append(this.getSystemContactInfoId());
		definiton.append("},");
		definiton.append("{code Id=").append(this.getCodeId()).append("},");
		definiton.append("{connect Type=");
		definiton.append(this.getConnectType()).append("},");
		definiton.append("{contact time=");
		definiton.append(
				TimeFormatStandard.getDtInEndUserDisplayFormat(this
						.getContactTime())).append("},");
		definiton.append("{ip Address=");
		definiton.append(this.getIpAddress()).append("},");
		definiton.append("{stepType Id=");
		definiton.append(this.getStepTypeId()).append("},");
		definiton.append("contact Logs=");
		if (!ASCUtil.isNullOrEmptyObject(this.getHstSystemContactLogs())) {
			definiton.append(this.getHstSystemContactLogs().toString());
		} else {
			definiton.append(" undefined ");
		}
		definiton.append("},");
		definiton.append("{system Id=").append(this.getSystemId()).append("}");
		return definiton.toString();
	}
}
